<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<jsp:useBean id="grid" scope="page" class="cn.sumpu.app.guoguojie.constant.Grid" />
<%@include file="jspcommon.jsp"%>
<%
	String menuType = "";
	String url = request.getRequestURI();
	if(url!=null){
	    url=url.substring(url.lastIndexOf("/")+1);
	    if(url.equals("meFans.jsp")||url.equals("meFollow.jsp")){
	        menuType="fans";
	    }else if(url.equals("mymessage.jsp") || url.equals("notify.jsp")){
	        menuType="message";
	    }else if(url.equals("account.jsp")){
	        menuType="account";
	    }else if(url.equals("myshare.jsp")){
	        request.setAttribute("pageType","puliu");
	        menuType="myshare";
	    }else if(url.equals("viewRank.jsp")){
	        menuType="viewRank";
	    }else if(url.equals("mylove.jsp")){
	        request.setAttribute("pageType","puliu");
	        menuType="mylove";
	    }else if(url.equals("rebate.jsp")){
	        menuType="rebate";
	    }else if(url.equals("topShop.jsp")){
	        menuType="topShop";
	    }else if(url.equals("amoys.jsp") || url.equals("discussdoing.jsp")){
	        menuType="amoys";
	    }else if(url.equals("amoy.jsp")||url.equals("discuss.jsp")){
	        menuType="amoy";
	    }else if(url.equals("shopping.jsp")){
	        menuType=(String)request.getAttribute("spfl");
	    }else if(url.equals("index.html")){
	        menuType="index";
	    }
	}
	request.setAttribute("menuType",menuType);
%>
<script type="text/javascript">
	
	$(function(){
		$("#ope_avatar").mouseenter(function(){
			$("#operate").show();
			$(document).bind("click",function(){
				$("#operate").hide();
				$(this).unbind("click");
			});
		});
		GUOGUO.unMessage();
	});
</script>
    <div class="head_wrap" id="head">
    	<div class="head clearfix">
        <div class="fr rbox">
        <c:if test="${onlineUser.member !=null}">
        		<div class="relative_ope" id="logged">
                	<a href="/member/myshare.htm" class="ope" id="ope_avatar"><img id="member_avatar" src="${onlineUser.member.imageServer }${onlineUser.member.avatar }" style="width: 30px;height: 30px;" class="avater block"  /><span class=" index_bg triangle"></span></a>
                    <a href="/message.htm" class="mail" style="display: none;" id="messageRed"><img src="../../images/v4/common/message.gif" class="block" /></a>
                    <a href="/message.htm" class="mail" id="messageHui"><img src="../../images/v4/common/message_1.gif" class="block" /></a>
                    <div class="hover_box" id="operate" style="display: none;">
                    	<span class="up_arrow">arrow</span>
                        <ul>
                        	<li>
                            	<a href="/member/myshare.htm">我的分享</a>
                            </li>
                            <li>
                            	<a href="/account/account.htm">我的存钱罐</a>
                            </li>
                            <li>
                            	<a href="/member/personal.htm">个人设置</a>
                            </li>
                            <li>
                            	<a href="/member/mylove.htm">我的收藏</a>
                            </li>
                            <li>
                            	<a href="/member/fans.htm">粉丝和关注</a>
                            </li>
                            <li>
                            	<a href="/member/logout.htm">退出登录</a>
                            </li>
                        </ul>
                    </div>
                    <div class="hover_box_s1" id="message" style="display: none;">
                    </div>
                    
                </div>
                </c:if>
                <c:if test="${onlineUser.member==null }">
	                <div class="relative_ope" id="nolog">
	                	<a href="/member/tologin.htm" class="lr login">登录</a>
	                    <a href="/member/toreg.htm" class="lr reg">注册</a>
	                </div>
	            </c:if>
            	<div class="index_bg search_box">
            		<form action="/search/search.htm" method="post" id="">
            			<input type="text" class="text" id="search_keywords" name="keywords"/>
            			<input type="submit" class="button" value=""/>
            		</form>
            		
            	</div>
            </div>
        	<a href="/" class="logo fl"><img src="../../images/v4/common/logo.png" class="block" /></a>
            
            
            <ul class="menu clearfix" id="menu">
            	<li>
                	<a href="/" class="main <c:if test="${menuType=='index'}">current</c:if>">首页</a>
                </li>
                <li>
                	<a href="/amoys.htm" class="main <c:if test="${menuType=='amoys' || menuType=='amoy'}">current</c:if>">妈妈帮淘+</a>
                	
                    <a href="/shop/shopping.htm?pd=${grid.boy }" class="main child <c:if test="${menuType==grid.boy }">current</c:if>">男孩</a>
                    <a href="/shop/shopping.htm?pd=${grid.girl }" class="main child <c:if test="${menuType==grid.girl }">current</c:if>">女孩</a>
                    <a href="/shop/shopping.htm?pd=${grid.ymm }" class="main child <c:if test="${menuType==grid.ymm }">current</c:if>">孕妈妈</a>
                </li>
                <li>
                	<a href="/rebate/rebate.htm" class="main <c:if test="${menuType=='rebate'}">current</c:if>">限时返利</a>
                    <!-- <a href="#" class="main child">试用</a> -->
                    <a href="/topshop.htm" class="main child <c:if test="${menuType=='topShop' }">current</c:if>">好店</a>
                </li>
                <li class="last">
                    <a href="/luck/viewrank.htm" class="main <c:if test="${menuType=='viewRank' }">current</c:if>">挣钱啦</a>
                </li>
            </ul>
            
        </div>
    </div>
    <!-- head--end-->